//STM32数据采集模块
#ifndef __STM32_H__
#define __STM32_H__
#include <stdlib.h>
#include  <fcntl.h>
#include  <stdio.h>
#include  "termios.h"
#include  <unistd.h>
#include  <stdint.h>
#include <shmem.h>
#include <pthread.h>
 //===================
#include <sys/select.h>
#include <sys/time.h>
#include <msg_queue_peer.h>
#include "same.h"

#define   UART_DEV   "/dev/ttyUSB0" //根据电脑插入的串口号定义
struct stm32_data
{
    unsigned int led;
    unsigned int Light;
    float bat;
};//上传数据结构体

int Stm32_up_data();
void * myrecv(void *arg);
#endif